package com.haidechizi.designpattern.proxy.dynamic;

import java.util.concurrent.TimeUnit;

/**
 * @author haidechizi
 */
public class StudentServiceImpl implements IStudentService {
    @Override
    public void save(Student student) {
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("保存学生信息" + student);
    }
}
